]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ctrlAltTab: Fix external DOCK windows
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 8 Mar 2013 13:18:06 +0000 (14:18 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 13 Mar 2013 09:18:16 +0000 (10:18 +0100)
We always add external DOCK windows to the ctrl-alt-tab switcher,
e.g. separate dock applications or nautilus' desktop windows.
Since commit 1f46a0dc26d81, all items in the switcher are expected
to set a proxy parameter, but the aforementioned code was not
updated accordingly.

https://bugzilla.gnome.org/show_bug.cgi?id=695395

js/ui/ctrlAltTab.js

index efab87b81c8735c2c78bd9f1e6e1a08c1e586ed7..f751cb12970682c029cacf3092ebb5abc8b67631 100644 (file)
@@ -103,6 +103,11 @@ const CtrlAltTabManager = new Lang.Class({
                 else
                     icon = textureCache.bind_pixbuf_property(windows[i], 'icon');
                 items.push({ name: windows[i].title,
+                             proxy: windows[i].get_compositor_private(),
+                             focusCallback: Lang.bind(windows[i],
+                                 function(timestamp) {
+                                     Main.activateWindow(this, timestamp);
+                                 }),
                              iconActor: icon,
                              sortGroup: SortGroup.MIDDLE });
             }